#!/bin/bash

unit() {
  PYTHONPATH=. "$@"
}

all-tests() {
  export PYTHONPATH=.
  find . -name \*_test.py | sh -x -e
}

calc() {
  PYTHONPATH=. examples/calc.py "$@"
}

example() {
  PYTHONPATH=. "$@"
}

wc-code() {
  ls annex/*.py | grep -v _test.py | xargs wc -l | sort -n
}

blowup() {
	~/hg/pygments/pygmentize -l sh < testdata/blowup.sh 
}

annex() {
	PYTHONPATH=.:_tmp/deps/docopt-master bin/annex_.py "$@"
}

# Try out asciidoc.
demo() {
    #--out - \
  _tmp/deps/*/asciidoc.py \
    doc/demo.txt
}

make-syntax() {
  PYTHONPATH=_tmp/deps doc/make_syntax.py \
    < doc/cre-syntax.txt
}

"$@"
